package cn.example.zjgsu.service;

import cn.example.zjgsu.pojo.UserComment;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.io.IOException;
import java.util.List;

/**
 * @author xuejiahui
 * @date 2020/3/28 -20:15
 */
public interface CommentServer {
    String  insertShopComment(MultipartFile[] files, HttpServletRequest request,String content, int shopid, String userid)throws IOException;
    String  insertShopComment2(MultipartFile file,MultipartFile file1,MultipartFile file2, HttpServletRequest request,String content, int shopid, String userid)throws IOException;
    int insertFoodRecordComment(String content,int foodrecordid,String userid);
    List<UserComment> getShopComment(int shopid);
    List<UserComment> getFoodRecordComment(int foodrecordid);
    int deleteComment(int commentid);
    int praiseComment(int commentid);

}
